package com.example.consumer.listener;


import cn.hutool.core.lang.Console;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;


@Component
@RocketMQMessageListener(topic = "tp_consumer_2",consumerGroup = "consumer_grp_01")
public class DelayListener implements RocketMQListener<String> {

    @Override
    public void onMessage(String s) {
        Console.log("接收到数据{}",s);
    }

}
